Ext.define('passport.store.PermissionTypeStore', {
    extend: 'Ext.data.Store',
    alias: 'widget.permissionTypeStore',
    storeId: 'permissionTypeStore',
    model: 'passport.model.PermissionTypeModel',
    pageSize: 5,
    autoLoad: true,
    proxy: {
    	api:
    	{
    		read: 'http://192.168.1.116/RpcService/Gateway.ashx?module=permission&action=PermissionType&method=get',
        	update: 'http://192.168.1.116/RpcService/Gateway.ashx?module=permission&action=PermissionType&method=save',
        	destroy: 'http://192.168.1.116/RpcService/Gateway.ashx?module=permission&action=PermissionType&method=delete'
    	},
    	type: 'jsonp',
      reader: {
          type: 'json',
          root: 'root',
          successProperty: 'success',
          totalProperty: 'total'
      },
      writer: {
      		type: 'xml'
      }
    }
});
